﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using System.Text;
using System.Threading.Tasks;

namespace ChatServer
{
    [ServiceContract]
   public interface INotification
    {
        [OperationContract(IsOneWay = true, AsyncPattern=true)]
        IAsyncResult BeginRecieveText(string content, AsyncCallback callback, object state);

        void EndRecieveText(IAsyncResult result);

        [OperationContract(IsOneWay = true, AsyncPattern = true)]
        IAsyncResult BeginRecieveVideo(VideoFrame content, AsyncCallback callback, object state);

        void EndRecieveVideo(IAsyncResult result);
    }
}
